import {
  AutoIncrement,
  Column,
  DataType,
  Model,
  PrimaryKey,
  Table,
} from 'sequelize-typescript';
@Table({
  tableName: 'download_log',
})
export class DownloadLog extends Model {
  @PrimaryKey
  @AutoIncrement
  @Column({
    type: DataType.INTEGER,
    allowNull: false,
    comment: 'content_id',
  })
  id: number;

  @Column({
    type: DataType.INTEGER,
    comment: '',
  })
  resumeId: number;

  //用户id
  @Column({
    type: DataType.INTEGER,
    comment: 'userId',
  })
  userId: number;

  //用户id
  @Column({
    type: DataType.INTEGER,
    comment: 'templateId',
  })
  templateId: number;

  @Column({
    type: DataType.STRING(255),
    comment: 'previewUrl',
  })
  previewUrl: string;
}
